from time import time
from fs import fs

org_times = []
str_times = []
org_vals = []
str_vals = []
org_nodes = []
str_nodes = []

for i in range(10):
    c = fs()
    c.parameters.read_file("../../param/stofac.prm")
    c.gen_inst(NI = 5, NS = 5, seed = i*20)
    c.init_lists()
    t0 = time()
    c.solve()
    t1 = time()
    org_times  += [t1 - t0]
    org_vals  += [c.solution.get_objective_value()]
    org_nodes += [c.solution.progress.get_num_nodes_processed()]
    t0 = time()
    c.init_bigm()
    t1 = time()
    c.solve()
    str_times  += [t1 - t0]
    str_vals  += [c.solution.get_objective_value()]
    str_nodes += [c.solution.progress.get_num_nodes_processed()]
print "time"
print org_times
print str_times
print "vals"
print org_vals
print str_vals
print "nodes"
print org_nodes
print str_nodes
